// 引入configureStore，用于创建store对象并自动配置redux-thunk
import { configureStore } from "@reduxjs/toolkit";
// 引入所有Reducer
import reducer from "./reducers";

// 暴露store对象，整个应用应该有且只有一个store对象
export default configureStore({
    reducer: reducer,
    devTools: process.env.NODE_ENV !== "production",
});
